  
    <section class="three fourths padded  bounceInDown animated  align-bottom-desktop">

        <center >
            <h3><?php echo Class_message::get('TxtPerrmisionsForModule') ?></h3>
            <table class="" style="border: #2B2B2D;">
                <tr>
                    <th style="width: 100px">
                <h4><b>Modulo</b>   </h4>
                </th>
                <th style="width: 100px">
                <h4><b><?php echo Class_message::get('BtnList') ?></b></h4>
                </th>
                <th style="width: 100px">
                <h4><b><?php echo Class_message::get('BtnRegister') ?></b></h4>
                </th>
                <th style="width: 100px">
                <h4> <b> <?php echo Class_message::get('BtnModify') ?></b></h4>
                </th>
                <th style="width: 100px">
                <h4> <b>Eliminar</b></h4>
                </th>
                </tr>

                <?php
                $db = new SuperDataBase();
                $query = "CALL sp_listModule()";
                $resul = $db->executeQuery($query);

                while ($row = $db->fecth_array($resul)) {
                    echo "<tr>";
                    echo "<th>" . $row[1] . "</th>";
                    if ($row[2] == "0") {
                        $result = "<img src='Public/images/uncheck.jpg'>";
                    } else if ($row[2] == "1") {
                        $result = "<img src='./././Public/images/check.png'>";
                    }
                    if ($row[3] == "0") {
                        $result2 = "<img src='./././Public/images/uncheck.jpg'>";
                    } else if ($row[3] == "1") {
                        $result2 = "<img src='./././Public/images/check.png'>";
                    }

                    if ($row[4] == "0") {
                        $result3 = "<img src='./././Public/images/uncheck.jpg'>";
                    } else if ($row[4] == "1") {
                        $result3 = "<img src='./././Public/images/check.png'>";
                    }
                    if ($row[5] == "0") {
                        $result4 = "<img src='./././Public/images/uncheck.jpg'>";
                    } else if ($row[5] == "1") {
                        $result4 = "<img src='./././Public/images/check.png'>";
                    }
                    echo "<th>" . $result . "</th>";
                    echo "<th>" . $result2 . "</th>";
                    echo "<th>" . $result3 . "</th>";
                    echo "<th>" . $result4 . "</th>";
                    echo "</tr>";
                }
                ?>
            </table>
        </center>
    </section>

